#define  _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;

#include"BinarySearch.h"

namespace gyc {

	void test01()
	{
		BST<int> b;
		int a[] = { 8,3,1,10,1,6,4,7,14,13 };
		for (auto e : a)
		{
			b.Insert(e);
	     
		}
		/*int x = 0;
		while (cin >> x)
		{
			if (b.Find(x))
			{
				cout << "找到了" << endl;
			}
			else {
				cout << "没找到" << endl;
			}

		}*/

		b.Erase(3);
		b.InOrder();
	}


}


int main()
{
	gyc::test01();

	return 0;
}